<?php
/**
 * Created by PhpStorm.
 * User: zch
 * Date: 2017/7/20
 * Time: 9:58
 */
require_once "Factory.php";
$operation = Factory::createFactory('+');
$operation->setNumA(123);
$operation->setNumB(321);
echo $operation->getResult();